﻿<%@ Page Title="" Language="C#" MasterPageFile="~/User.master" AutoEventWireup="true" CodeBehind="userMain.aspx.cs" Inherits="doris.Ticketuser.userMain" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  
 <style type ="text/css">
  
     fieldset
    {
        float:left;
    }
    .menu
    {
        float:right;
        height: 18px;
        }
    
 
   .detailview
   {
       padding-bottom:110px;
       padding-top:75px;
       height: 171px;
       width: 690px;

        }
   
   .test
   {
       margin-bottom: 0px;
       }
 
 .usernameLabel
 {
     float:left;
 }
     .dorisDetail
     {}
    </style>
 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<div class ="usernameLabel">
<p><asp:Label ID="Label1" runat="server" Text="Label" ForeColor="#0066FF"></asp:Label></p>
</div>


<div class ="menu">
  &nbsp;<asp:Menu ID="Menu1" runat="server" Orientation="Horizontal" 
            RenderingMode="Table" Width="300px" CssClass ="test" 
        onmenuitemclick="Menu1_MenuItemClick">
            <Items>
                <asp:MenuItem Text="New Ticket" Value="NewTicket"></asp:MenuItem>
                <asp:MenuItem Text="Edit User" Value="EditUser"></asp:MenuItem>
                <asp:MenuItem Text="Logout" Value="Logout"></asp:MenuItem>
            </Items>
            <StaticHoverStyle BackColor="#0033CC" ForeColor="White" />
            <StaticMenuItemStyle BackColor="#99CCFF" BorderColor="Black" 
                BorderStyle="Solid" BorderWidth="1px" Font-Names="Arial" Font-Size="Smaller" 
                ForeColor="Black" />

        </asp:Menu>
    <br />
    &nbsp;&nbsp;
    <asp:Calendar ID="Calendar1" runat="server" Font-Size="8pt" 
        style="margin-left: 107px" Width="98px" FirstDayOfWeek="Monday" 
        SelectedDate="05/17/2011 10:31:52" BackColor="#FFFFCC" 
        BorderColor="#FFCC66" BorderWidth="1px" DayNameFormat="Shortest" 
        Font-Names="Verdana" ForeColor="#663399" Height="88px" 
        ShowGridLines="True">
        <DayHeaderStyle BackColor="#FFCC66" Font-Bold="True" Height="1px" />
        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
        <OtherMonthDayStyle ForeColor="#CC9966" />
        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
        <SelectorStyle BackColor="#FFCC66" />
        <TitleStyle BackColor="#990000" Font-Bold="True" Font-Size="9pt" 
            ForeColor="#FFFFCC" />
        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
    </asp:Calendar>
</div>



<div class ="detailview">
<fieldset>
    <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="251px" 
            AutoGenerateRows="False" DataKeyNames="TicketID" DataSourceID="SqlDataSource1"
            CssClass="dorisDetail" CellPadding="2" ForeColor="Black" 
        GridLines="None" Font-Size ="Smaller" BackColor="LightGoldenrodYellow" 
        BorderColor="Tan" BorderWidth="1px">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
            <EditRowStyle BackColor="DarkSlateBlue" ForeColor="GhostWhite" />
            <Fields>
                <asp:BoundField DataField="TicketID" HeaderText="TicketID" 
                    InsertVisible="False" ReadOnly="True" SortExpression="TicketID"/>
              
                <asp:BoundField DataField="Status" HeaderText="Status" 
                    SortExpression="Status" />
              
                <asp:BoundField DataField="Priority" HeaderText="Priority" 
                    SortExpression="Priority" />
                <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" />
                <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" 
                    SortExpression="CreatedDate" />
                <asp:BoundField DataField="UpdatedDate" HeaderText="UpdatedDate" 
                    SortExpression="UpdatedDate" />
                <asp:BoundField DataField="PendingDate" HeaderText="PendingDate" 
                    SortExpression="PendingDate" />
                <asp:CheckBoxField DataField="Locked" HeaderText="Locked" 
                    SortExpression="Locked" />
                <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" 
                    Visible="False" />
                <asp:BoundField DataField="Username" HeaderText="Username" 
                    SortExpression="Username" Visible = "false"/>
                <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            </Fields>
            <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="Tan" Font-Bold="True" />
            <HeaderTemplate>
                Ticket
            </HeaderTemplate>
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" Font-Size="Smaller" Height="50px" />
             
        </asp:DetailsView>


    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:localConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:localConnectionString.ProviderName %>" 
        SelectCommand="getTicket" SelectCommandType="StoredProcedure">
        <SelectParameters>
            <asp:SessionParameter DefaultValue="0" Name="in_ticketid" 
                SessionField="ticketID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>

   
       <asp:Button ID="Button1" runat="server" Text="Edit" 
        onclick="Button1_Click" />
         </fieldset>   
         
         <asp:DetailsView ID="DetailsView2" runat="server" Height="50px" Width="125px">
    </asp:DetailsView>




   
</div>

<div>

<asp:GridView ID="GridView1" runat="server"
         DataSourceID="SqlDataSource2"
           AllowPaging="True"  
           Font-Names="Arial"  
           ForeColor="#333333"  
           AutoGenerateColumns="False" Font-Size="X-Small" 
           Height="5px" 
           Width = "999px"
           style="margin-top: 0px"
           onselectedindexchanged="GridView1_SelectedIndexChanged" CellPadding="4" GridLines="None"         
           >
   
             <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
  
             <SelectedRowStyle   
                BackColor="#FFCC66"  
                BorderColor="Orange"  
                BorderWidth="2" Font-Bold="True" ForeColor="Navy"  
                />  
            <PagerStyle   
                ForeColor="#333333"     
                BackColor="#FFCC66"  
                Font-Size= "X-Small"  
                VerticalAlign="Top"  
                HorizontalAlign="Center" Font-Names="Arial" Height="5px" Width="999px"  
                />  

             <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />

            <HeaderStyle   
                BackColor="#990000"  
                BorderColor="Orange"   
                ForeColor="White" Font-Size="Smaller" Font-Bold="True"   
                />  
             <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:CommandField ShowSelectButton="True" />
             <asp:BoundField DataField="TicketID" HeaderText="TicketID" 
                 SortExpression="TicketID"/>
             <asp:BoundField DataField="TicketStatusID" HeaderText="TicketStatusID" 
                 SortExpression="TicketStatusID" Visible = "false" />
             <asp:BoundField DataField="Status" HeaderText="Status" 
                 SortExpression="Status"  />
             <asp:BoundField DataField="TicketPriorityID" HeaderText="TicketPriorityID" 
                 SortExpression="TicketPriorityID"  Visible = "false" />
             <asp:BoundField DataField="Priority" HeaderText="Priority" 
                 SortExpression="Priority" Visible = "false"/>
             <asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title"  Visible = "true"/>
             <asp:BoundField DataField="CreatedDate" HeaderText="CreatedDate" 
                 SortExpression="CreatedDate" />
             <asp:BoundField DataField="UpdatedDate" HeaderText="UpdatedDate" 
                 SortExpression="UpdatedDate" />
             <asp:BoundField DataField="PendingDate" HeaderText="PendingDate" 
                 SortExpression="PendingDate"  Visible = "false"/>
             <asp:CheckBoxField DataField="Locked" HeaderText="Locked" 
                 SortExpression="Locked" />
             <asp:BoundField DataField="UserID" HeaderText="UserID" 
                 SortExpression="UserID"  Visible = "false"/>
             <asp:BoundField DataField="Username" HeaderText="Username" 
                 SortExpression="Username"/>
             <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
         </Columns>
             <SortedAscendingCellStyle BackColor="#FDF5AC" />
             <SortedAscendingHeaderStyle BackColor="#4D0000" />
             <SortedDescendingCellStyle BackColor="#FCF6C0" />
             <SortedDescendingHeaderStyle BackColor="#820000" />
     </asp:GridView>

         <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
        ConnectionString="<%$ ConnectionStrings:localConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:localConnectionString.ProviderName %>" 
        SelectCommand="getAllUsersTickets" SelectCommandType="StoredProcedure">
             <SelectParameters>
                 <asp:SessionParameter DefaultValue="0" Name="in_username" SessionField="username" 
                     Type="String" />
             </SelectParameters>
    </asp:SqlDataSource>
    <br />
   
 </div>
    </asp:Content>
